package com.lzy.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value="/login")
public class LoginControl {
	
	@RequestMapping
	public ModelAndView login( String id) {
		ModelAndView view = new ModelAndView("login");
		return view; 
	}
	
	@RequestMapping(value="/check",method=RequestMethod.POST)
	public String index() {
		
		return "redirect:/home"; 
	}
	
}
